Endoscopy is a procedure used by physicians to view, sample, or repair the passageways of the digestive tract. In this video, the endoscope is introduced through the oral cavity, passed through the pharynx and into the esophagus. We are now passing through the gastroesophageal junction. Notice the rugae lining the stomach.